﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace wpfapp
{
    /// <summary>
    /// Interaction logic for PopupWindow.xaml
    /// </summary>
    public partial class PopupWindow : Window
    {
        public PopupWindow()
        {
            InitializeComponent();
            this.txtButton1Name.Text = Properties.Settings.Default.Btn1_Name;
            this.txtButton1Path.Text = Properties.Settings.Default.Btn1_FilePath;
            this.txtButton2Name.Text = Properties.Settings.Default.Btn2_Name;
            this.txtButton2Path.Text = Properties.Settings.Default.Btn2_FilePath;
            this.txtButton3Name.Text = Properties.Settings.Default.Btn3_Name;
            this.txtButton3Path.Text = Properties.Settings.Default.Btn3_FilePath;
            this.txtButton4Name.Text = Properties.Settings.Default.Btn4_Name;
            this.txtButton4Path.Text = Properties.Settings.Default.Btn4_FilePath;
            this.txtButton5Name.Text = Properties.Settings.Default.Btn5_Name;
            this.txtButton5Path.Text = Properties.Settings.Default.Btn5_FilePath;
            this.txtButton6Name.Text = Properties.Settings.Default.Btn6_Name;
            this.txtButton6Path.Text = Properties.Settings.Default.Btn6_FilePath;
            this.txtButton7Name.Text = Properties.Settings.Default.Btn7_Name;
            this.txtButton7Path.Text = Properties.Settings.Default.Btn7_FilePath;
            this.txtButton8Name.Text = Properties.Settings.Default.Btn8_Name;
            this.txtButton8Path.Text = Properties.Settings.Default.Btn8_FilePath;
            this.txtButton9Name.Text = Properties.Settings.Default.Btn9_Name;
            this.txtButton9Path.Text = Properties.Settings.Default.Btn9_FilePath;
            this.txtButton10Name.Text = Properties.Settings.Default.Btn10_Name;
            this.txtButton10Path.Text = Properties.Settings.Default.Btn10_FilePath;
            this.txtButton11Name.Text = Properties.Settings.Default.Btn11_Name;
            this.txtButton11Path.Text = Properties.Settings.Default.Btn11_FilePath;
            this.txtButton12Name.Text = Properties.Settings.Default.Btn12_Name;
            this.txtButton12Path.Text = Properties.Settings.Default.Btn12_FilePath;
            this.txtButton13Name.Text = Properties.Settings.Default.Btn13_Name;
            this.txtButton13Path.Text = Properties.Settings.Default.Btn13_FilePath;
            this.txtButton14Name.Text = Properties.Settings.Default.Btn14_Name;
            this.txtButton14Path.Text = Properties.Settings.Default.Btn14_FilePath;
            this.txtButton15Name.Text = Properties.Settings.Default.Btn15_Name;
            this.txtButton15Path.Text = Properties.Settings.Default.Btn15_FilePath;
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            Properties.Settings.Default.Btn1_Name=this.txtButton1Name.Text;
            Properties.Settings.Default.Btn1_FilePath = this.txtButton1Path.Text;
            Properties.Settings.Default.Btn2_Name = this.txtButton2Name.Text;
            Properties.Settings.Default.Btn2_FilePath = this.txtButton2Path.Text;
            Properties.Settings.Default.Btn3_Name = this.txtButton3Name.Text;
            Properties.Settings.Default.Btn3_FilePath = this.txtButton3Path.Text;
            Properties.Settings.Default.Btn4_Name = this.txtButton4Name.Text;
            Properties.Settings.Default.Btn4_FilePath = this.txtButton4Path.Text;
            Properties.Settings.Default.Btn5_Name = this.txtButton5Name.Text;
            Properties.Settings.Default.Btn5_FilePath = this.txtButton5Path.Text;
            Properties.Settings.Default.Btn6_Name = this.txtButton6Name.Text;
            Properties.Settings.Default.Btn6_FilePath = this.txtButton6Path.Text;
            Properties.Settings.Default.Btn7_Name = this.txtButton7Name.Text;
            Properties.Settings.Default.Btn7_FilePath = this.txtButton7Path.Text;
            Properties.Settings.Default.Btn8_Name = this.txtButton8Name.Text;
            Properties.Settings.Default.Btn8_FilePath = this.txtButton8Path.Text;
            Properties.Settings.Default.Btn9_Name = this.txtButton9Name.Text;
            Properties.Settings.Default.Btn9_FilePath = this.txtButton9Path.Text;
            Properties.Settings.Default.Btn10_Name = this.txtButton10Name.Text;
            Properties.Settings.Default.Btn10_FilePath = this.txtButton10Path.Text;
            Properties.Settings.Default.Btn11_Name = this.txtButton11Name.Text;
            Properties.Settings.Default.Btn11_FilePath = this.txtButton11Path.Text;
            Properties.Settings.Default.Btn12_Name = this.txtButton12Name.Text;
            Properties.Settings.Default.Btn12_FilePath = this.txtButton12Path.Text;
            Properties.Settings.Default.Btn13_Name = this.txtButton13Name.Text;
            Properties.Settings.Default.Btn13_FilePath = this.txtButton13Path.Text;
            Properties.Settings.Default.Btn14_Name = this.txtButton14Name.Text;
            Properties.Settings.Default.Btn14_FilePath = this.txtButton14Path.Text;
            Properties.Settings.Default.Btn15_Name = this.txtButton15Name.Text;
            Properties.Settings.Default.Btn15_FilePath = this.txtButton15Path.Text;
            Properties.Settings.Default.Save();
        }

        
        

        

    }
}
